﻿namespace CodeGenerator.CSharp
{
    public class Enum : CodeUnit
    {
        public Enum(string name) : base(name) { }
        public Enum(string name, ModifierCollection modifiers) : base(name, modifiers) {}

        public override string ToString()
        {
            CodeBuilder Code = new CodeBuilder();

            base.AppendDocumentation(Code);
            base.AppendAttributes(Code);

            Code.Add(base.Padding + base.Modifiers.ToString() + " enum " + base.Name);
            Code.Add(base.Padding + "{");
            Code.Add(base.Body);
            Code.Add(base.Padding + "}");

			return Code.ToString();
        }

    }
}
